package org.poem.config;

/**
 * zookeeper 配置
 */
public class DefaultZkLockConfig implements IZkLockConfig {

    /**
     * zookeeper的地址
     */
    private String zkServers;
    /**
     * zookeeper连接超时设置
     */
    private Integer zkConnectTimeout;
    /**
     * 分布式锁的基本设置
     */
    private String basePath;

    /**
     * 重试的最大次数
     */
    private Long retryMaxTime;

    @Override
    public String getZkServers() {
        return zkServers;
    }

    @Override
    public Integer getZkConnectTimeout() {
        return zkConnectTimeout;
    }

    @Override
    public String getBasePath() {
        return basePath;
    }


    public void setZkConnectTimeout(Integer zkConnectTimeout) {
        this.zkConnectTimeout = zkConnectTimeout;
    }

    public void setZkServers(String zkServers) {
        this.zkServers = zkServers;
    }

    public void setBasePath(String basePath) {
        this.basePath = basePath;
    }

    @Override
    public Long getRetryMaxTime() {
        return retryMaxTime;
    }

    public void setRetryMaxTime(Long retryMaxTime) {
        this.retryMaxTime = retryMaxTime;
    }

}
